<template>
  <div><back></back></div>
  <div class="top">
    <h2>我的足迹</h2>
    <div>
      <van-icon name="delete-o" /><span @click="changeIsShow">清空所有</span>
    </div>
  </div>
  <div class="list" v-if="isShow">
    <h3>今天 ~</h3>
    <footimg>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods3.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods4.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods5.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods6.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods3.png" alt="" />
      </router-link>
    </footimg>
  </div>
  <div class="list" v-if="isShow">
    <h3>2022.12.05</h3>
    <footimg>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods3.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods4.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods6.png" alt="" />
      </router-link>
    </footimg>
  </div>
  <div class="list" v-if="isShow">
    <h3>2022.12.01</h3>
    <footimg>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods3.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods4.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods5.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods5.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods3.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods4.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods5.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods6.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods4.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods3.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods4.png" alt="" />
      </router-link>
      <router-link to="/detailPage">
        <img src="@/assets/images/goods6.png" alt="" />
      </router-link>
    </footimg>
  </div>
  <backTop></backTop>
</template>

<script setup>
// 回到顶部
import backTop from "@/components/ZhiDing.vue";
// 返回按钮
import back from "@/components/Back.vue";

// footImg列表
import footimg from "@/views/user/footprint/FootImg.vue";

import { ref } from "vue";

let isShow = ref(true);

function changeIsShow() {
  isShow.value = false;
}
</script>

<style lang="less" scoped>
.top {
  display: flex;
  justify-content: space-between;
  h2 {
    line-height: 1;
    font-weight: 600;
    margin-left: 5.067vw;
  }
  div {
    display: flex;
    justify-content: center;
    align-items: center;
    .van-icon {
      font-size: 6vw;
    }
    span {
      font-size: 2.667vw;
      font-weight: 600;
      color: #000;
      margin-right: 5.067vw;
      margin-left: 1.867vw;
    }
  }
}
.list {
  padding: 0 5.067vw;
  margin-top: 4vw;
  margin-bottom: 4vw;
  h3 {
    line-height: 1;
    font-size: 3.933vw;
    font-weight: 600;
    margin-bottom: 4vw;
  }
  img {
    width: 25.5vw;
    height: 24.667vw;
    float: left;
    margin: 2vw 2vw 4vw 2vw;
    box-shadow: 0 0 1vw #333;
  }
}
</style>
